<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.List,java.util.Map;" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> 
<table cellpadding="0" cellspacing="0" border="0" class="datatable" id="example">
	<thead>
		<tr>
			<th>对象名</th>
			<th>描述</th>
			<th>抽取为模型</th>
		</tr>
	</thead>
	<tbody>
	<c:set var="f" value="1" />
	<c:forEach var="table" items="${tables }">
	<c:set var="f" value="${f+1 }" />
	<tr class='grade<c:if test="${f%2==0}">B</c:if><c:if test="${f%2!=0}">A</c:if>'>
<%-- 		<td><a href="<%=request.getContextPath()%>/c?s=model&o=field&t=${table.Name}">${table.Name}</a></td>--%>
		<td>${table.Name }</td>
		<td>${table.Comment }</td>
		<td class="center"><button class="btn btn-small btn-warning reflect" href="<%=request.getContextPath()%>/c?s=model&o=addform&t=${table.Name}"><i class="icon-external-link"></i> <span>抽取</span></button></td>
	</tr>
	</c:forEach>
	</tbody>
</table>
<script>
$(".datatable").dataTable(datatable_config);
</script>